import { Injectable } from "@angular/core";
import { tokenKey } from "@angular/core/src/view/util";


@Injectable()
export class TokenStorageService { 
    private tokenKey: string = 'token';
    public isValid: boolean = true;
    
    getToken() { 
        return localStorage.getItem(this.tokenKey);
    }
    setToken(token) { 
        return localStorage.setItem(this.tokenKey, token);
    }
}